﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="QuanLyNhanVien.aspx.cs" Inherits="ChoTenMien.Admin.QuanLyNhanVien" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server">
    <style type="text/css">
        .style6
        {
            color: black;
        }
        .style8
        {
            width: 700px;
            height: 29px;
        }
        .style10
        {
            height: 28px;
        }
        .style11
        {
            text-align: left;
            height: 21px;
            width: 122px;
        }
        .style12
        {
            width: 700px;
            height: 21px;
        }
        .style13
        {
            text-align: left;
            height: 26px;
            width: 122px;
        }
        .style14
        {
            height: 26px;
        }
        .style15
        {
            text-align: left;
            height: 28px;
            width: 122px;
        }
        .style16
        {
            width: 700px;
            height: 28px;
        }
        .style18
        {
            height: 21px;
        }
        .style19
        {
            text-align: left;
            height: 17px;
            width: 122px;
        }
        .style20
        {
            width: 700px;
            height: 17px;
        }
        .style21
        {
            color: #FF3300;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="NoiDungChinh" runat="server">
    <center>
    <div align="center">
    <div style="color: #3333ff; text-align: center" align="center">        
        <table style="margin-top: 0px; margin-bottom: 0px; padding-bottom: 0px; vertical-align: middle; padding-top: 0px; text-align: center; height: 222px;"
             border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="2" style="text-align: left" class="style10">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="lblTB" runat="server"></asp:Label>
                    <span style="color: #ff00ff"><strong>
                    <span style="font-size: 15pt; vertical-align: text-top;
                        width: 700px; text-align: center; ">
            QUẢN LÝ NHÂN VIÊN</span></strong><br />
                    </span>
                </td>
            </tr>
            <tr>
                <td class="style19" 
                    valign="top" >
                    <span style="color: #000000">
                    Tên nhân viên </span> <span class="colorRed">(*):</span>
                    </td>
                <td style="text-align: left; " 
                    valign="top" class="style20">
                    <asp:TextBox ID="txtTenNV" runat="server" BackColor="#FFFFC0" 
                        BorderColor="Black" BorderStyle="Solid" Width="300px" ValidationGroup="them"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTenNV"
                        ErrorMessage="Chưa nhập" ValidationGroup="them"></asp:RequiredFieldValidator>
               </td>
            </tr>
            <tr>
                <td colspan="1" style="vertical-align: text-top; " class="style11" 
                    valign="top">
                    <span style="color: #000000">
                    Giới tính </span><span class="colorRed">(*): </span>
                </td>
                <td style="text-align: left; text-align: left; " class="style18" 
                    valign="top">
                    <asp:RadioButtonList ID="rdoGioiTinh" runat="server" ValidationGroup="them" 
                        RepeatDirection="Horizontal" Width="300px" BorderWidth="0" 
                        RepeatLayout="Flow">
                           <asp:ListItem Value="0" Selected="True" Text="Nam">Nam</asp:ListItem>
                           <asp:ListItem Value="1" Text="Nu">Nu</asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="rdoGioiTinh"
                        ErrorMessage="Chưa nhập" ValidationGroup="them"></asp:RequiredFieldValidator>
                   </td>
            </tr>
            <tr>
                <td style="vertical-align: text-top; " 
                    class="style15" valign="top">
                    <span style="color: #000000">
                    Ngày sinh </span> <span class="colorRed">(*):
                <td style="text-align: left; " 
                    valign="top" class="style16">
                    <asp:DropDownList ID="DrpNgay" runat="server" BackColor="#FFFFC0" 
                        ToolTip="Chọn ngày" ValidationGroup="them">                    
                        <asp:ListItem>Chọn ngày</asp:ListItem>                    
                    </asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="DrpThang" runat="server" BackColor="#FFFFC0" 
                        ToolTip="Chọn tháng" ValidationGroup="them">
                        <asp:ListItem>Chọn tháng</asp:ListItem>
                    </asp:DropDownList>&nbsp;
                    <asp:DropDownList ID="DrpNam" runat="server" BackColor="#FFFFC0" 
                        ToolTip="Chọn năm" ValidationGroup="them">
                        <asp:ListItem>Chọn năm</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="DrpNgay"
                        ErrorMessage="Chưa nhập" ValidationGroup="them"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="DrpThang"
                        ErrorMessage="Chưa nhập" ValidationGroup="them"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="DrpNam"
                        ErrorMessage="Chưa nhập" ValidationGroup="them"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr style="color: #000000">
                <td class="style13" 
                    valign="top">
                    Địa chỉ </span> <span class="colorRed">(*)</span> :<span class="colorRed"> &nbsp;</td>
                <td style="text-align: left; " 
                    valign="top" class="style14">
                    <asp:TextBox ID="txtDiaChi" runat="server" TextMode="Password" Width="300px" 
                        style="height: 20px" BackColor="#FFFFC0" BorderColor="Black" 
                        BorderStyle="Solid" ValidationGroup="dk"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDiaChi"
                        ErrorMessage="Chưa nhập" ValidationGroup="them" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
            </tr>
              <tr style="color: #000000">
                <td class="style11" 
                    valign="top">
                    Điện thoại </span> :<span class="colorRed"> &nbsp;
                </td>
                <td style="text-align: left; " 
                    valign="top" class="style12">
                    <asp:TextBox ID="txtDienThoai" runat="server" BackColor="#FFFFC0" 
                        BorderColor="Black" BorderStyle="Solid" Width="300px" 
                        ValidationGroup="them"></asp:TextBox>
                    </td>
            </tr>      
            <tr>
                <td colspan="2" style="height: 32px; text-align: center">
                    <em><span style="font-size: 10pt; " class="style21">(Lưu ý : Bạn phải điền đầy đủ các
                        thông tin)</span></em></td>
            </tr>
            <tr style="color: #000000">
                <td colspan="2" 
                    style="height: 32px; text-align:left;" 
                    align="center">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btThem" runat="server" Text="Thêm" Width="72px" 
                        ValidationGroup="them" BackColor="#FFFFC0" BorderColor="Black" 
                        BorderStyle="Solid" />
                    &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnLamMoi" runat="server" Text="Làm mới" BackColor="#FFFFC0" 
                        BorderColor="Black" BorderStyle="Solid" 
                        Width="72px" ValidationGroup="dk" />
                    <br />
                </td>
           </tr>
            <tr style="color: #000000">
                <td colspan="2" 
                    style="height: 32px; text-align:left;" 
                    align="center">
                    <strong>Thông tin dữ liệu:</strong></td>
           </tr>
            <tr style="color: #000000">
                <td colspan="2" 
                    style="height: 32px; " 
                    align="center">
                    <asp:GridView ID="gvQuanLyNhanVien" runat="server" AutoGenerateColumns="False" 
                    AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" 
                    EnableModelValidation="True" CellPadding="3" 
                        GridLines="Vertical" BackColor="White" BorderColor="#999999" 
                        BorderStyle="None" BorderWidth="1px" Height="152px" Width="713px">
                        <AlternatingRowStyle BackColor="#DCDCDC" />
                        <Columns>
                            <asp:TemplateField HeaderText="Mã nhân viên">
                            <EditItemTemplate>
                                <asp:Label ID="lbNhanvien" runat="server" Text='<%# Eval("MaNhanVien") %>'></asp:Label>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lbNhanvien1" runat="server" Text='<%# Eval("MaNhanVien") %>'></asp:Label>
                            </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên nhân viên">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtTennhanvien" runat="server" Height="16px" 
                                    Text='<%# Eval("TenNhanVien") %>' Width="50px"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lbTennhanvien" runat="server" Text='<%# Eval("TenNhanVien") %>'></asp:Label>
                            </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Giớ tính">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtGioitinh" runat="server" Height="16px" 
                                    Text='<%# Eval("GioiTinh") %>' Width="40px"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lbGioitinh" runat="server" Text='<%# Eval("GioiTinh") %>'></asp:Label>
                            </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Ngày sinh">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtNgaysinh" runat="server" Height="16px" 
                                    Text='<%# Eval("NgaySinh") %>' Width="57px"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lbNgaysinh" runat="server" Text='<%# Eval("NgaySinh") %>'></asp:Label>
                            </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Địa chỉ">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtDiachi" runat="server" Height="16px" 
                                    Text='<%# Eval("DiaChi") %>' Width="50px"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lbDiachi" runat="server" Text='<%# Eval("DiaChi") %>'></asp:Label>
                            </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Điện thoại">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtDienthoai" runat="server" Height="16px" 
                                    Text='<%# Eval("DienThoai") %>' Width="60px"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="txtDienthoai" runat="server" 
                                    Text='<%# Eval("DienThoai") %>'></asp:Label>
                            </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                        <SortedAscendingHeaderStyle BackColor="#0000A9" />
                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                        <SortedDescendingHeaderStyle BackColor="#000065" />
                    </asp:GridView>
                </td>
           </tr>
        </table> 
        <br />
        </asp:Panel>
        <br />
        <strong><span style="color: #ffff33"><span style="color: #ff0066">
        </span></span></strong></div>
</div>
</center>
</asp:Content>
